<template>
  <div class="newlist">
    <myheader title="新闻资讯">
      <span
        slot="left"
        class="van-icon van-icon-arrow-left"
        @click="$router.back()"
      >
        返回</span
      >
    </myheader>
    <newList :list="Newlist"></newList>
  </div>
</template>

<script>
import myheader from "@/components/myheader.vue";
import newList from "@/components/newList.vue";
import { getNewsList } from "@/api/New.js";
export default {
  components: { myheader, newList },

  data() {
    return {
      Newlist: [],
    };
  },
  async mounted() {
    let res = await getNewsList();
    // console.log(res);
    this.Newlist = res.data.message;
    console.log(this.Newlist);
  },
};
</script>
<style lang="less" scoped>
.newlist {
  padding-bottom: 50px;
}
</style>